package com.cqjtu.drive.service;

import com.cqjtu.drive.pojo.Student;
import com.cqjtu.drive.response.Response;

import java.util.List;

public interface StudentService {

    Response<Student> getStudentById(String studentId);
    Response<Student> getStudentByuserId(String userId);

    Response<String> insertStudent(Student student);

    Response<String> updateStudent(Student student);

    Response<String> deleteStudent(String studentId);
    Response<String> deleteBysName(String sName);
    Response<List<Student>> getAllStudents();

    Response<List<Student>> getBysName(String sName);

}
